<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F().offset演示</title>
<style type="text/css">
#box1{position:absolute; background-color:red; left:100px; top:100px; width:100px; height:100px;}
#box2{position:absolute; background-color:blue;}
#box3{position:absolute; background-color:green; width:50px; height:50px;}
</style>
<script type="text/javascript" src="../../1st.js"></script>
</head>
<body>
<div id="box1"></div>
<div id="box2"></div>
<div id="box3"></div>


<script type="text/javascript">
F("box2").offset("box1", "rect", 100, 100);
F("box3").offset("box1", "pos", 75, 75);
</script>
</body>
</html>